package com.kun.gulimall.coupon.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kun.gulimall.coupon.domain.Coupon;
import com.kun.gulimall.coupon.service.CouponService;
import com.kun.gulimall.coupon.mapper.CouponMapper;
import com.kun.gulimall.util.PageUtils;
import com.kun.gulimall.util.Query;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class CouponServiceImpl extends ServiceImpl<CouponMapper, Coupon>
        implements CouponService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<Coupon> page = new Query<Coupon>().getPage(params);
        IPage<Coupon> page1 = this.page(page);
        return new PageUtils(page1);
    }
}




